package com.self.common.exception;

/**
 * @version v1.0
 * @ClassName: RestError
 * @Description:
 * @Author: Mac
 * @Date: 2022/6/2 23:08
 */
public enum RestError {
    SYSTEM_EXCE(9999,"系统异常"),
    PARAM_EMPTY(1000,"参数不能为空"),
    SERVICE_EXCE(500,"服务异常"),
    SUCCESS(0,"操作成功");

    private int code;

    private String msg;

    RestError(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
